<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <h1> <span>
    hello world hello cuifan
  </span>
  </h1>
  <a href="">百度一下</a>

  <script>
    const h1 = document.querySelector('h1')
    const a = document.querySelector('a')
    console.log(h1.innerHTML); // 包括html标签和空格换行
    console.log(h1.innerText); // JS实现的DOM编程接口
    h1.innerHTML = '<h3>hello simon</h3>'
    a.href = 'http://www.baidu.com'
  </script>
</body>

</html>